a1=set()
for i in range(1,6):
    print('请输入第',i,'位好友的姓名和其联系方式:',end='')
    a2=input()
    a1.add(a2)
for k in a1:
    print(k)
